public class Date {
    public int year = 2025;

    public int month = 8;
    public int day = 20;

    public Date(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public Date() {
       this(2025,8,20);//调用构造方法Date(int year, int month, int day)
    }
    public void setDay(int year, int month, int day){
        this.year = year;

        this.month = month;
        this.day = day;
    }
    public void printDate(){
        System.out.println(year + "/" + month + "/" + day);
    }
}

